$(document).ready(function() {	
	$("#video").fancybox({
		'padding'			: 0,
		'width'				: 480,
		'height'			: 370,
		'autoScale'			: false,
		'opacity'			: true,
		'overlayShow'		: true,
		'transitionIn'		: 'elastic',
		'transitionOut'		: 'elastic'
	});
	
	var acookie = document.cookie.split(";");
	var visited = false;
	for(var i=0;i<acookie.length;i++){
		if (acookie[i] == "v=true") {
			visited = true;
			break;
		}
	}
	
/*
	if (visited == false) {
		$("#video").click();
		var date=new Date(); 
		//将date设置为半天以后的时间 
		date.setTime(date.getTime()+12*3600*1000);
		document.cookie="v=true;expires="+date.toGMTString();
	}
*/
});